package com.server.common.logistice.sfd.track;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@NoArgsConstructor
@Getter
@Setter
public class SFDGetTrackResponse {
    @SerializedName("code")
    private Integer code;
    @SerializedName("data")
    private List<TrackData> trackDataList;
    @SerializedName("success")
    private Boolean success;

    @NoArgsConstructor
    @Getter
    @Setter
    public static class TrackData {
        @SerializedName("data")
        private List<TrackDetailData> trackDetailDataList;
        @SerializedName("mailNo")
        private String trackingNumber;
        @SerializedName("success")
        private Boolean success;
        @SerializedName("type")
        private String type;

        @NoArgsConstructor
        @Getter
        @Setter
        public static class TrackDetailData {
            @SerializedName("acceptAddress")
            private String acceptAddress;
            @SerializedName("acceptTime")
            private String acceptTime;
            @SerializedName("opcode")
            private String opcode;
            @SerializedName("remark")
            private String remark;
            @SerializedName("state")
            private String state;
        }
    }
}
